<?
 $path="http://www.cqgmy.cn/xxgk/zxdt.html";
 echo "<br>传输协议:".substr($path,0,strrpos($path,"p")+1);
 echo "<br>主机名：".substr($path,7,strrpos($path,"/")-6);
 echo "<br>页面程序名：".substr($path,25,strrpos($path,'.'));
 echo "<br>页面程序扩展名：".substr($path,strrpos($path,".")+1);
 echo "<br>文件目录级数:".substr_count(substr($path,7),"/");
?>